<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:c="http://java.sun.com/jsp/jstl/core">
    <h:head>
        <title>Facelet Title</title>

    </h:head>
    <h:body>
        <ui:composition template="/template.xhtml">
             <ui:define name="title">
             Меню ресторана
         </ui:define>
            <ui:define name="content">
                <h3>Меню ресторана</h3>
                <h:dataTable headerClass="table-header" rowClasses="table-row" value="#{productBean.allProducts}" var="o">
                    <h:column>
                        <f:facet name="header">Name</f:facet>
                        #{o.name}
                    </h:column>
                    <h:column>
                        <f:facet name="header">Description</f:facet>
                        #{o.description}
                    </h:column>
                    <h:column>
                        <f:facet name="header">Price</f:facet>
                        #{o.price}
                    </h:column>
                    <h:column>
                        <f:facet name="header">Unit</f:facet>
                        #{o.unit}
                    </h:column>
                    <h:column>
                        <f:facet name="header">ProductType</f:facet>
                        #{o.prType}
                    </h:column>
                    <!--<c:if test="#{productBean.curentProduct != null}">
                        <h:column>
                            <f:facet name="header"></f:facet>                         
                            
                        </h:column>
                    </c:if>-->
                </h:dataTable>
            </ui:define>
        </ui:composition>
            
</h:body>

</html>

